<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Title')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-title" class="form-control" name="row[title]" type="text" value="{$row.title|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Row')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-row" class="form-control " rows="5" name="row[row]" cols="50">{$row.row|htmlentities}</textarea>
        </div>
    </div>
    
      
        <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('文章图片')}:</label>
        <div class="col-xs-12 col-sm-8">
         
            <ul class="row list-inline faupload-preview" id="p-images">
                
                <?php
                    
                    
                if(!empty($row["img"])){
                $datas = json_decode($row["img"],true);
            
      
                foreach($datas as $k=>$v){
                    
                            
               
                    if(substr($v,0,4) != "http"){
                      
                        $v = "https://cdnauth.dreamyuewen.com".$v;
                        
                    }
          
                
                ?>
                
                    <li class="col-xs-3">
                        <a href="{$v}" data-url="{$v}" target="_blank" class="thumbnail">
                            <img src="{$v}" onerror="this.src='/qOpKowMNSk.php/ajax/icon?suffix=jpg';this.onerror=null;" class="img-responsive">
                            </a>
                     </li>
                 <?php }}  ?>
                
                
                
                
            </ul>
        </div>
    </div>
       
     <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('上次下架时间')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-title" class="form-control" name="row[sh_time]" disabled type="text" value="{$row.sh_time|htmlentities}">
        </div>
    </div>
    
   
    <?php $statusList = ["正常","下架"]; ?>

   <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('是否下架')}:</label>
       <div class="radio">
        {foreach name="statusList" item="vo"}
    
        <label for="row[s_jb]-{$key}"><input id="row[s_jb]-{$key}" name="row[s_jb]" type="radio" value="{$key}" {in name="key" value="$row.s_jb"}checked{/in} /> {$vo}</label> 
        {/foreach}
        </div>
    </div>
    <!--reason_msg-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('下架原因')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-title" class="form-control" name="row[reason_msg]" type="text" value="{$row.reason_msg|htmlentities}">
      
        </div>
    </div>
    
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('温馨提醒')}:</label>
            <div class="col-xs-12 col-sm-8">
            <input id="c-refuse_msg" class="form-control" name="row[tips]" type="text" value="{$row.tips|htmlentities}">
        </div>
    </div>
    
    <!--  <div class="form-group">-->
    <!--    <label class="control-label col-xs-12 col-sm-2">{:__('跳转路径')}:</label>-->
    <!--        <div class="col-xs-12 col-sm-8">-->
    <!--        <input id="c-refuse_msg" class="form-control" name="row[path]" type="text" value="">-->
    <!--    </div>-->
    <!--</div>-->
    
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
